<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<h:outputStylesheet name="common.css" library="css" />
	<f:loadBundle basename="locale.messages" var="msg"/>
</h:head>
<h:body>
	<p:idleMonitor timeout="600000" onidle="idleDialog.show()" onactive="idleDialog.hide()" />
	<p:dialog header="What's happening?" resizable="false" 
		widgetVar="idleDialog" modal="true" width="400">
		<h:outputText value="Hello!, are you there?" />
	</p:dialog>
	
	<div id="page">
		<div id="header">
			<ui:insert name="header">
				<ui:include src="/template/header.xhtml" />
			</ui:insert>
		</div>

		<div id="content">
			<ui:insert name="content">
				<ui:include src="/template/content.xhtml" />
			</ui:insert>
		</div>

		<div id="footer">
			<ui:insert name="footer">
				<ui:include src="/template/footer.xhtml" />
			</ui:insert>
		</div>

	</div>

</h:body>
</html>